#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void change(char* arr1, char* arr2) {
	int p = 0;
	while (*(arr1 + p) != '\0') {
		char tmp = 0;
		tmp = arr1[p];
		arr1[p] = arr2[p];
		arr2[p] = tmp;
		p++;
	}

}
int main() {
	char arr1[] = "qwerty";
	char arr2[] = "asdfgh";
	change(arr1, arr2);
	printf("%s\n%s", arr1, arr2);
	return 0;
}